package com.zyf.school.manager.domain;


import com.baomidou.mybatisplus.annotation.TableField;
import lombok.*;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * 区域经理信息
 */

@Setter@Getter@ToString
@NoArgsConstructor@AllArgsConstructor
public class Area {

    private String tel;//手机号码
    private String code;//区域编码
    private String name;//区域名称
    private String state;//区域状态

    @DateTimeFormat(pattern = "yyyyMMddHHssmm")
    private Date begintime = new Date();//开始时间
    @DateTimeFormat(pattern = "yyyyMMddHHssmm")
    private Date endtime;//结束时间

    @TableField(value = "parent_tel")
    private String parentId;//所属区域手机号

    @TableField(exist = false)
    private List<Area> children;

    private String card;//编号
}